import request from '../utils/request.js'
// 获取轮播图
export const getSliders = (data)=>{
	return request({
		url: '/slider/getSliders',
		config: {
			method: 'GET'
		},
		data
   })
}
// 新上好课
export const getMostNew = (data)=>{
	return request({
		url: '/course/mostNew',
		config: {
			method: 'POST'
		},
		data
   })
}
// 推荐好课
export const getMostHeat = (data)=>{
	return request({
		url: '/course/mostHeat',
		config: {
			method: 'POST'
		},
		data
   })
}
// 查询课程
export const searchCourse = (data) => {
		
	return request({
		url: '/course/search',
		config: {
			method: 'POST'
		},
		data
	})
}